//
//  DelFoodTableViewCell.m
//  ZooNgonDoiOS
//
//  Created by Trung sound on 8/16/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "DelFoodTableViewCell.h"

@implementation DelFoodTableViewCell
@synthesize lbFoodName= _lbFoodName;
@synthesize btnCheckbox = _btnCheckbox;
@synthesize vImgCheck = _vImgCheck;
@synthesize vImgBox = _vImgBox;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        _lbFoodName = [[UILabel alloc]initWithFrame:CGRectMake(5, 10, 215, 25)];
        [_lbFoodName setBackgroundColor:[UIColor clearColor]];
        
        _btnCheckbox = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 60)];
        [_btnCheckbox setBackgroundColor:[UIColor clearColor]];
        
        _vImgBox = [[UIImageView alloc]initWithFrame:CGRectMake(224, 15, 21, 21)];
        UIImage *imgCheckboxBg = [UIImage imageNamed:IMG_DELFOOD_CHECKBOX_BG];
        [_vImgBox setImage:imgCheckboxBg];
        
        _vImgCheck = [[UIImageView alloc]initWithFrame:CGRectMake(-2, -4, 26, 25)];

        [_vImgBox addSubview:_vImgCheck];
        [_btnCheckbox addSubview:_lbFoodName];
        [_btnCheckbox addSubview:_vImgBox];
        
        [self addSubview:_btnCheckbox];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
